import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { MultipleComponent } from './multiple.component';
import { MultipleTrainComponent } from './components/multiple-train/multiple-train.component';
import { MultipleAssessmentComponent } from './components/multiple-assessment/multiple-assessment.component';
import { MultipleAssessmentDetailComponent } from './components/multiple-assessment-detail/multiple-assessment-detail.component';

import { AicompetenceComponent } from '../aicompetence/aicompetence.component';

const routes: Routes = [{
  path: 'multiple',
  redirectTo: ''
},
{
  path: '',
  component: AicompetenceComponent,
  children: [    
    {
      path: '',
      component: MultipleComponent,
      children: [    
        { path: 'multipleTrain', component: MultipleTrainComponent },
        { path: 'multipleAssessment', component: MultipleAssessmentComponent },
        { path: 'multipleAssessmentDetail', component: MultipleAssessmentDetailComponent },
        { path: '**', redirectTo: 'multipleTrain' }
      ]
       
    }
  ]
   
}, {
  path: '**',
  redirectTo: 'multiple'
}
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class MultipleRoutingModule { }